package com.ruoyi.place.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.AreaName;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.UserMemberInfo;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.core.domain.vo.DutyTcVo;
import com.ruoyi.common.core.domain.vo.IsPlaceInfo;
import lombok.Data;

import java.util.List;


/**
 * 易制毒场所视图对象 place_ezd
 *
 * @author xiaohao
 * @date 2023-01-19
 */
@Data
@ExcelIgnoreUnannotated
public class PlaceEzdVo implements IsPlaceInfo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long ezdId;

    /**
     * 单位（地区）
     */
    @ExcelProperty(value = "单位", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "地=区")
    private String dwdq;

    @AreaName
    public String getDwdqInfo() {
        return dwdq;
    }

    /**
     * 易制毒场所地址
     */
    @ExcelProperty(value = "易制毒场所地址")
    private String yzdcsdz;

    /**
     * 责任人
     */
    @ExcelProperty(value = "责任人")
    private String fzr;

    /**
     * 账号状态
     */
    @ExcelProperty(value = "账号状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "zhzt")
    private String zhzt;

    /**
     * 冻结/解冻审核状态
     */
    @ExcelProperty(value = "冻结/解冻审核状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "djjdshzt")
    private String djjdshzt;

    @Override
    public Long getPlaceId() {
        return ezdId;
    }

    private DutyTcVo dutyTcVo;

    @Override
    public DutyTcVo getTcInfo() {
        return dutyTcVo;
    }

    @Override
    public void setTcInfo(DutyTcVo tcInfo) {
        this.dutyTcVo = tcInfo;
    }

    private List<DutyTcVo> dutyTcVoList;

    @Override
    public List<DutyTcVo> getTcInfoList() {
        return dutyTcVoList;
    }

    @Override
    public void setTcInfoList(List<DutyTcVo> dutyTcVoList) {
        this.dutyTcVoList = dutyTcVoList;
    }


}
